﻿namespace AnyOffice.Model
{
    using System;

    public class UnitData
    {
        protected object _address;
        protected object _bankName;
        protected object _bankNo;
        protected object _email;
        protected object _faxNo;
        protected object _postNo;
        protected object _telNo;
        protected object _unitName;
        protected object _url;

        public string Address
        {
            get
            {
                return (string) this._address;
            }
            set
            {
                this._address = value;
            }
        }

        public bool AddressIsNull
        {
            get
            {
                return (this._address == null);
            }
            set
            {
                if (value)
                {
                    this._address = null;
                }
            }
        }

        public string BankName
        {
            get
            {
                return (string) this._bankName;
            }
            set
            {
                this._bankName = value;
            }
        }

        public bool BankNameIsNull
        {
            get
            {
                return (this._bankName == null);
            }
            set
            {
                if (value)
                {
                    this._bankName = null;
                }
            }
        }

        public string BankNo
        {
            get
            {
                return (string) this._bankNo;
            }
            set
            {
                this._bankNo = value;
            }
        }

        public bool BankNoIsNull
        {
            get
            {
                return (this._bankNo == null);
            }
            set
            {
                if (value)
                {
                    this._bankNo = null;
                }
            }
        }

        public string Email
        {
            get
            {
                return (string) this._email;
            }
            set
            {
                this._email = value;
            }
        }

        public bool EmailIsNull
        {
            get
            {
                return (this._email == null);
            }
            set
            {
                if (value)
                {
                    this._email = null;
                }
            }
        }

        public string FaxNo
        {
            get
            {
                return (string) this._faxNo;
            }
            set
            {
                this._faxNo = value;
            }
        }

        public bool FaxNoIsNull
        {
            get
            {
                return (this._faxNo == null);
            }
            set
            {
                if (value)
                {
                    this._faxNo = null;
                }
            }
        }

        public string PostNo
        {
            get
            {
                return (string) this._postNo;
            }
            set
            {
                this._postNo = value;
            }
        }

        public bool PostNoIsNull
        {
            get
            {
                return (this._postNo == null);
            }
            set
            {
                if (value)
                {
                    this._postNo = null;
                }
            }
        }

        public string TelNo
        {
            get
            {
                return (string) this._telNo;
            }
            set
            {
                this._telNo = value;
            }
        }

        public bool TelNoIsNull
        {
            get
            {
                return (this._telNo == null);
            }
            set
            {
                if (value)
                {
                    this._telNo = null;
                }
            }
        }

        public string UnitName
        {
            get
            {
                return (string) this._unitName;
            }
            set
            {
                this._unitName = value;
            }
        }

        public bool UnitNameIsNull
        {
            get
            {
                return (this._unitName == null);
            }
            set
            {
                if (value)
                {
                    this._unitName = null;
                }
            }
        }

        public string Url
        {
            get
            {
                return (string) this._url;
            }
            set
            {
                this._url = value;
            }
        }

        public bool UrlIsNull
        {
            get
            {
                return (this._url == null);
            }
            set
            {
                if (value)
                {
                    this._url = null;
                }
            }
        }
    }
}

